Global Const DB_LANG_GENERAL = ";LANGID=0x0809;CP=1252;COUNTRY=0"
' Profile String Information
Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString$, ByVal nSize%, ByVal lpFileName As String) As Integer
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpString As String, ByVal lpFileName As String) As Integer
' For Floating Titles
Declare Function WindowFromPoint Lib "User" (ByVal X As Integer, ByVal Y As Integer) As Integer
Sub AnimateIcon (CDTime As Variant)
Dim FName As String, Fsize As Integer
Dim FItalic As Integer
' Save and Reset Font Options
FName = CDForm.FontName
Fsize = CDForm.FontSize
FItalic = CDForm.FontItalic
CDForm.FontName = "Modern"
CDForm.FontSize = 12
CDForm.FontItalic = False
CDForm.Cls
CDForm.Line (0, 0)-(510, 310), &H0, BF
CDForm.DrawWidth = 2
CDForm.Line (525, 75)-(530, 350)
CDForm.Line (50, 350)-(525, 350)
CDForm.DrawWidth = 1
CDForm.CurrentX = 10
CDForm.CurrentY = 10
CDForm.Print CDTime
CDForm.FontName = FName
CDForm.FontSize = Fsize
CDForm.FontItalic = FItalic
End Sub
Function CDExists (CDIDNo As Long) As Integer
Dim Db As Database
Dim Tb As Table
Set Db = OpenDatabase(AppPath & "\CDPlayer.MDb")
Set Tb = Db.OpenTable("Titles")
Tb.Index = "PrimaryKey"
Tb.Seek "=", CDIDNo
If Tb.NoMatch Then
CDExists = False
Else
CDExists = True
End If
End Function
Sub CenterForm (Center As Form, ShowForm As Integer)
Load Center
Center.Top = (Screen.Height - Center.Height) / 2
Center.Left = (Screen.Width - Center.Width) / 2
If ShowForm = True Then
Center.Show
Center.Refresh
End If
End Sub
Sub CenterLogo (CForm As Form, TheControl As Control)